<template>
  <div id="app" ref="app">
    <!-- <MainLayout/> -->
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {},

  created() {
    if (localStorage.getItem("WFITToken") == null) {
      this.$router.push('/login')
      return
    }
    this.$store.dispatch('fetchCampusList')
    this.$store.dispatch('fetchConferenceRoomList')
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
}

#app {
  margin: 0;
  padding: 0;
}
</style>
